﻿using System;
using System.ComponentModel;

using Supremacy.Annotations;
using Supremacy.Client.Properties;
using Supremacy.Resources;

namespace Supremacy.Client.OptionsPages
{
    /// <summary>
    /// Interaction logic for GraphicsOptionsPage.xaml
    /// </summary>
    public partial class AudioOptionsPage : IClientOptionsPage
    {
        private readonly IResourceManager _resourceManager;
        private readonly IAudioEngine _audioEngine;
        private readonly DelegatingWeakPropertyChangedListener _settingsPropertyChangedHandler;

        public AudioOptionsPage(
            [NotNull] IResourceManager resourceManager,
            [NotNull] IAudioEngine audioEngine)
        {
            if (resourceManager == null)
                throw new ArgumentNullException("resourceManager");
            if (audioEngine == null)
                throw new ArgumentNullException("audioEngine");

            _resourceManager = resourceManager;
            _audioEngine = audioEngine;
            
            InitializeComponent();
        }

        public string Header
        {
            get { return _resourceManager.GetString("SETTINGS_AUDIO_TAB"); }
        }
    }
}
